using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

using CreamXStudio.Classes;
using CreamX.Framework.Game;


namespace CreamXStudio.Screens
{
    public partial class MaterialEditor : EditorControlBase
    {
        CreamXMaterialBase _material=null;
        public MaterialEditor()
        {
            InitializeComponent();
        }
        internal override void SetData(object data)
        {
            base.SetData(data);
            _material = (CreamXMaterialBase)data;
            picImage.Image = SessionData.Instance.ImageCache[_material.Name];
            txtName.Text = _material.Name;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FireSaved();
        }
    }
}
